package com.qf.huigou.pojo;

import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName tb_good
 */
@Data
public class Good implements Serializable {
    /**
     * 
     */
    private Integer goodId;

    /**
     * 
     */
    private String goodName;

    /**
     * 
     */
    private String goodImg;

    /**
     * 
     */
    private Integer goodCost;

    /**
     * 
     */
    private Integer goodMinPrice;

    /**
     * 
     */
    private Integer goodFirstPrice;

    /**
     * 
     */
    private Integer goodSecondPrice;

    /**
     * 
     */
    private Integer goodThirdPrice;

    /**
     * 
     */
    private Integer goodForthPrice;

    /**
     * 
     */
    private Integer goodFifthPrice;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Good other = (Good) that;
        return (this.getGoodId() == null ? other.getGoodId() == null : this.getGoodId().equals(other.getGoodId()))
            && (this.getGoodName() == null ? other.getGoodName() == null : this.getGoodName().equals(other.getGoodName()))
            && (this.getGoodImg() == null ? other.getGoodImg() == null : this.getGoodImg().equals(other.getGoodImg()))
            && (this.getGoodCost() == null ? other.getGoodCost() == null : this.getGoodCost().equals(other.getGoodCost()))
            && (this.getGoodMinPrice() == null ? other.getGoodMinPrice() == null : this.getGoodMinPrice().equals(other.getGoodMinPrice()))
            && (this.getGoodFirstPrice() == null ? other.getGoodFirstPrice() == null : this.getGoodFirstPrice().equals(other.getGoodFirstPrice()))
            && (this.getGoodSecondPrice() == null ? other.getGoodSecondPrice() == null : this.getGoodSecondPrice().equals(other.getGoodSecondPrice()))
            && (this.getGoodThirdPrice() == null ? other.getGoodThirdPrice() == null : this.getGoodThirdPrice().equals(other.getGoodThirdPrice()))
            && (this.getGoodForthPrice() == null ? other.getGoodForthPrice() == null : this.getGoodForthPrice().equals(other.getGoodForthPrice()))
            && (this.getGoodFifthPrice() == null ? other.getGoodFifthPrice() == null : this.getGoodFifthPrice().equals(other.getGoodFifthPrice()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getGoodId() == null) ? 0 : getGoodId().hashCode());
        result = prime * result + ((getGoodName() == null) ? 0 : getGoodName().hashCode());
        result = prime * result + ((getGoodImg() == null) ? 0 : getGoodImg().hashCode());
        result = prime * result + ((getGoodCost() == null) ? 0 : getGoodCost().hashCode());
        result = prime * result + ((getGoodMinPrice() == null) ? 0 : getGoodMinPrice().hashCode());
        result = prime * result + ((getGoodFirstPrice() == null) ? 0 : getGoodFirstPrice().hashCode());
        result = prime * result + ((getGoodSecondPrice() == null) ? 0 : getGoodSecondPrice().hashCode());
        result = prime * result + ((getGoodThirdPrice() == null) ? 0 : getGoodThirdPrice().hashCode());
        result = prime * result + ((getGoodForthPrice() == null) ? 0 : getGoodForthPrice().hashCode());
        result = prime * result + ((getGoodFifthPrice() == null) ? 0 : getGoodFifthPrice().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", goodId=").append(goodId);
        sb.append(", goodName=").append(goodName);
        sb.append(", goodImg=").append(goodImg);
        sb.append(", goodCost=").append(goodCost);
        sb.append(", goodMinPrice=").append(goodMinPrice);
        sb.append(", goodFirstPrice=").append(goodFirstPrice);
        sb.append(", goodSecondPrice=").append(goodSecondPrice);
        sb.append(", goodThirdPrice=").append(goodThirdPrice);
        sb.append(", goodForthPrice=").append(goodForthPrice);
        sb.append(", goodFifthPrice=").append(goodFifthPrice);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}